package com.pig4cloud.pig.repair.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 报修表
 *
 * @author pig
 * @date 2025-07-30 09:38:29
 */
@Data
@TableName("property_repair")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "报修表")
public class PropertyRepairEntity extends Model<PropertyRepairEntity> {

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="主键")
    private Long repairId;

    @Schema(description="报修编号")
    private String repairCode;

    @Schema(description="报修人")
    private String requester;

    @Schema(description="手机号")
    private String phone;
    @Schema(description="地址")
    private String address;

    @Schema(description="维修工(用角色)")
    private String worker;
    @Schema(description="状态，0未指派，1待处理，2已完成")
    private String status;
    @Schema(description="详情")
    private String remark;

	@TableField(fill = FieldFill.INSERT)
    @Schema(description="报修时间")
    private LocalDateTime createTime;

	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="修改时间")
    private LocalDateTime updateTime;
    @TableLogic
		@TableField(fill = FieldFill.INSERT)
    @Schema(description="删除标志，0未删除，1已删除")
    private String delFlag;
}
